package com.yangzehan.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 小程序产品表
 * @TableName xcx_product
 */
@TableName(value ="xcx_product")
public class XcxProduct implements Serializable {
    /**
     * 产品id
     */
    @TableId(type = IdType.AUTO)
    private Integer productId;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 产品备注
     */
    private String productRemarks;

    /**
     * 产品描述
     */
    private String productDescription;

    /**
     * 产品详情展示
     */
    private String productDetailsSrc;

    /**
     * 产品现价
     */
    private String productPriceNew;

    /**
     * 产品原价
     */
    private String productPriceOld;

    /**
     * 产品详情轮播图
     */
    private String productDetailsSwiper;

    /**
     * 产品规格
     */
    private String specifications;

    /**
     * 主题id
     */
    private Integer themeId;

    /**
     * 分类id
     */
    private Integer classificationId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 产品id
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * 产品id
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    /**
     * 产品名称
     */
    public String getProductName() {
        return productName;
    }

    /**
     * 产品名称
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * 产品备注
     */
    public String getProductRemarks() {
        return productRemarks;
    }

    /**
     * 产品备注
     */
    public void setProductRemarks(String productRemarks) {
        this.productRemarks = productRemarks;
    }

    /**
     * 产品描述
     */
    public String getProductDescription() {
        return productDescription;
    }

    /**
     * 产品描述
     */
    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    /**
     * 产品详情展示
     */
    public String getProductDetailsSrc() {
        return productDetailsSrc;
    }

    /**
     * 产品详情展示
     */
    public void setProductDetailsSrc(String productDetailsSrc) {
        this.productDetailsSrc = productDetailsSrc;
    }

    /**
     * 产品现价
     */
    public String getProductPriceNew() {
        return productPriceNew;
    }

    /**
     * 产品现价
     */
    public void setProductPriceNew(String productPriceNew) {
        this.productPriceNew = productPriceNew;
    }

    /**
     * 产品原价
     */
    public String getProductPriceOld() {
        return productPriceOld;
    }

    /**
     * 产品原价
     */
    public void setProductPriceOld(String productPriceOld) {
        this.productPriceOld = productPriceOld;
    }

    /**
     * 产品详情轮播图
     */
    public String getProductDetailsSwiper() {
        return productDetailsSwiper;
    }

    /**
     * 产品详情轮播图
     */
    public void setProductDetailsSwiper(String productDetailsSwiper) {
        this.productDetailsSwiper = productDetailsSwiper;
    }

    /**
     * 产品规格
     */
    public String getSpecifications() {
        return specifications;
    }

    /**
     * 产品规格
     */
    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    /**
     * 主题id
     */
    public Integer getThemeId() {
        return themeId;
    }

    /**
     * 主题id
     */
    public void setThemeId(Integer themeId) {
        this.themeId = themeId;
    }

    /**
     * 分类id
     */
    public Integer getClassificationId() {
        return classificationId;
    }

    /**
     * 分类id
     */
    public void setClassificationId(Integer classificationId) {
        this.classificationId = classificationId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        XcxProduct other = (XcxProduct) that;
        return (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
            && (this.getProductRemarks() == null ? other.getProductRemarks() == null : this.getProductRemarks().equals(other.getProductRemarks()))
            && (this.getProductDescription() == null ? other.getProductDescription() == null : this.getProductDescription().equals(other.getProductDescription()))
            && (this.getProductDetailsSrc() == null ? other.getProductDetailsSrc() == null : this.getProductDetailsSrc().equals(other.getProductDetailsSrc()))
            && (this.getProductPriceNew() == null ? other.getProductPriceNew() == null : this.getProductPriceNew().equals(other.getProductPriceNew()))
            && (this.getProductPriceOld() == null ? other.getProductPriceOld() == null : this.getProductPriceOld().equals(other.getProductPriceOld()))
            && (this.getProductDetailsSwiper() == null ? other.getProductDetailsSwiper() == null : this.getProductDetailsSwiper().equals(other.getProductDetailsSwiper()))
            && (this.getSpecifications() == null ? other.getSpecifications() == null : this.getSpecifications().equals(other.getSpecifications()))
            && (this.getThemeId() == null ? other.getThemeId() == null : this.getThemeId().equals(other.getThemeId()))
            && (this.getClassificationId() == null ? other.getClassificationId() == null : this.getClassificationId().equals(other.getClassificationId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
        result = prime * result + ((getProductRemarks() == null) ? 0 : getProductRemarks().hashCode());
        result = prime * result + ((getProductDescription() == null) ? 0 : getProductDescription().hashCode());
        result = prime * result + ((getProductDetailsSrc() == null) ? 0 : getProductDetailsSrc().hashCode());
        result = prime * result + ((getProductPriceNew() == null) ? 0 : getProductPriceNew().hashCode());
        result = prime * result + ((getProductPriceOld() == null) ? 0 : getProductPriceOld().hashCode());
        result = prime * result + ((getProductDetailsSwiper() == null) ? 0 : getProductDetailsSwiper().hashCode());
        result = prime * result + ((getSpecifications() == null) ? 0 : getSpecifications().hashCode());
        result = prime * result + ((getThemeId() == null) ? 0 : getThemeId().hashCode());
        result = prime * result + ((getClassificationId() == null) ? 0 : getClassificationId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", productId=").append(productId);
        sb.append(", productName=").append(productName);
        sb.append(", productRemarks=").append(productRemarks);
        sb.append(", productDescription=").append(productDescription);
        sb.append(", productDetailsSrc=").append(productDetailsSrc);
        sb.append(", productPriceNew=").append(productPriceNew);
        sb.append(", productPriceOld=").append(productPriceOld);
        sb.append(", productDetailsSwiper=").append(productDetailsSwiper);
        sb.append(", specifications=").append(specifications);
        sb.append(", themeId=").append(themeId);
        sb.append(", classificationId=").append(classificationId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}